__author__ = 'zoulida'

import pyautogui

pyautogui.press(['m', 'i', 'n', 'g'])

import win32api
import win32con
import time

while True:
    time.sleep(5)
    win32api.keybd_event(86, 0, 0, 0)  # v键位码是86
    win32api.keybd_event(86, 0, win32con.KEYEVENTF_KEYUP, 0)  # 释放按键